<template>
    <footer>
        <ul>
            <router-link to="/films" custom v-slot="{navigate,isActive}">
              <li @click="navigate" :class="isActive?'swqactive':''">
                <i class="iconfont icon-shouye"></i>
                <span>电影</span>
              </li>
            </router-link>
            <router-link to="/cinemas" custom v-slot="{navigate,isActive}">
              <li @click="navigate" :class="isActive?'swqactive':''">
                <i class="iconfont icon-sousuo"></i>
                <span>影院</span>
              </li>
            </router-link>
            <router-link to="/center" custom v-slot="{navigate,isActive}">
              <li @click="navigate" :class="isActive?'swqactive':''">
                <i class="iconfont icon-wodexiao"></i>
                <span>我的</span>
              </li>
            </router-link>
       </ul>
    </footer>
</template>
<script>
export default {

}
</script>
<style scoped>

 .swqactive{
    color:red
  }
  footer{
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3.0625rem;
    background: white;
    z-index: 2;
  }
  ul{
    display: flex;
  }
  li{
    flex: 1;
    height: 3.0625rem;
    line-height:1.5rem;
    text-align: center;

    display: flex;
    flex-direction: column;
    }
    i{
     font-size: 1.3125rem;
    }
    span{
        font-size: .75rem;
    }

</style>
